package com.kube.design.flyweight;

/**
 * @author q.zhangr
 * @version 1.0.0
 * @date 2020/7/17
 */
public class WhiteChessman extends AbstractChessman {
    /**
     * 构造方法 初始化白棋子
     */
    public WhiteChessman() {
        super("○");
        System.out.println("--WhiteChessman Construction Exec!!!");
    }

    /**
     * 点坐标设置
     *
     * @param x
     * @param y
     */
    @Override
    public void point(int x, int y) {
        this.x = x;
        this.y = y;
        // 显示棋子内容
        show();
    }
}
